package com.atom.app.lifecycle.db

import androidx.room.ColumnInfo
import androidx.room.TypeConverters
import java.util.*

abstract class AbstractBaseable {

    @ColumnInfo(name = "uuid")
    var uuid: String = UUID.randomUUID().toString()

    @TypeConverters(DateToLongConverter::class)
    var createAt: Date = Date()// 创建时间

    @TypeConverters(DateToLongConverter::class)
    var updateAt: Date = Date()// 更新时间

    override fun toString(): String {
        return "uuid=$uuid , createAt=$createAt , updateAt=$updateAt "
    }
}
